Skip to main content
Version: 3.x.x

UseCacheOptionsType


import { UseCacheOptionsType } from "@hyper-fetch/react"

Description

Defined in react/src/hooks/use-cache/use-cache.types.ts:12

Preview

type UseCacheOptionsType<T> = {
deepCompare: boolean | typeof isEqual;
dependencyTracking: boolean;
initialData: CacheValueType<ExtractResponseType<T>, ExtractErrorType<T>>[data] | null;
}

Structure

{
deepCompare: boolean | typeof isEqual;
dependencyTracking: boolean;
initialData: {\n ...params1: ResponseReturnType<Response, Error, AdapterType>;\n ...params2: ResponseDetailsType;\n cacheTime: number;\n clearKey: string;\n garbageCollection: number;\n}[data] | null;
}